<?php
/**
 * CreateTime: 2023/7/3 14:42
 */

namespace App\Http\Requests\Staff;

use App\Http\Requests\BaseRequests;

class AllocateStaffSeatRequest extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'staff_seats_pwd' => "required",
            'staff_seats_number' => "required",
        ];
    }

    public function messages()
    {
        return [
            'staff_seats_pwd.required' => "分机号不能为空",
            'staff_seats_number.required' => "分机密码不能为空"
        ];
    }
}
